/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.kuleuven.cs.distrinet.wsn.looci.networkclient;

/**
 * A simple client to the Network Manager.
 *
 * @author klaas, wouterh
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try { // Call Web Service Operation
            be.kuleuven.cs.distrinet.wsn.looci.networkmanager.webservice.WebServiceFacadeService service = new be.kuleuven.cs.distrinet.wsn.looci.networkmanager.webservice.WebServiceFacadeService();
            be.kuleuven.cs.distrinet.wsn.looci.networkmanager.webservice.WebServiceFacade port = service.getWebServiceFacadePort();
            // TODO initialize WS operation arguments here
            java.util.List<java.lang.String> arg0 = new java.util.ArrayList<java.lang.String>();
            arg0.add("0014.4F01.0000.5FDF");
            java.lang.String arg1 = "LightSensor_1.0.0";
            // TODO process result here
            java.util.List<java.lang.String> result = port.deployComponent(arg0, arg1);
            System.out.println("Result = "+result.get(0));
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }

    }

}
